/*
 * Copyright (C) 2009 M. Hautle.
 * 
 * This file is part of TrackedBean.
 * 
 * TrackedBean is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option) any later version.
 * 
 * TrackedBean is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License along with TrackedBean. If not, see <http://www.gnu.org/licenses/>.
 */
package ch.trackedbean.data;

import ch.trackedbean.validator.defaultValidators.*;

/**
 * Domain object A
 * 
 * @author M. Hautle
 */
public class DomA {
	/**
	 * Property constant for {@link #getTextA()}/{@link #setTextA(String)}. Type {@link String}.
	 */
	public static final String ATTR_TEXT_A = "textA";

	/**
	 * Property constant for {@link #getGetterA()}/{@link #setGetterA(String)}. Type {@link String}.
	 */
	public static final String ATTR_GETTER_A = "getterA";

	/**
	 * Property constant for {@link #getNumberA()}/{@link #setNumberA(int)}. Type int.
	 */
	public static final String ATTR_NUMBER_A = "numberA";

	/**
	 * Property constant for {@link #getNumber()}/{@link #setNumber(String)}. Type {@link String}.
	 */
	public static final String ATTR_NUMBER = "number";

	/** Simple number with field validation. */
	@Range(min = 4)
	private int numberA;

	/** Simple text with field validation. */
	@Length(min = 3)
	private String textA;

	/** Property annotated on getter. */
	private String getterA;

	/** String holding an integer. */
	private String number;

	/**
	 * @return Returns the number.
	 */
	public String getNumber() {
		return number;
	}

	/**
	 * @param number The number to set.
	 */
	public void setNumber(String number) {
		this.number = number;
	}

	/**
	 * @return Returns the numberA.
	 */
	public int getNumberA() {
		return numberA;
	}

	/**
	 * @param numberA The numberA to set.
	 */
	public void setNumberA(int numberA) {
		this.numberA = numberA;
	}

	/**
	 * @return Returns the textA.
	 */
	public String getTextA() {
		return textA;
	}

	/**
	 * @param textA The textA to set.
	 */
	public void setTextA(String textA) {
		this.textA = textA;
	}

	/**
	 * @return Returns the getter.
	 */
	@Length(min = 3)
	public String getGetterA() {
		return getterA;
	}

	/**
	 * @param getter The getter to set.
	 */
	public void setGetterA(String getter) {
		this.getterA = getter;
	}
}
